package org.lex.string;

import java.io.PrintWriter;

/**
 * A <code>IFormatter</code> convert an object to a sensible String. This class
 * behaves like the <code>toString()</code>method.
 * 
 * @author Daniel Liu
 * 
 * @param <T>
 */
public interface IFormatter<T> {
	void format(T object, PrintWriter out);

	String format(T object);
}
